package com.ytc.serviceconsumer.Controller;

import com.ytc.serviceprovider.Service.RemoteHelloService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ytc
 * @ClassName HelloServiceIml
 * @Description TODO
 * @date 2021/07/07
 */
@RestController
public class HelloController {

    @DubboReference(interfaceClass = RemoteHelloService.class,check = false)
    private RemoteHelloService remoteHelloService;

    //  11111
    @RequestMapping("/hello")
    public String SayHello(){
        return remoteHelloService.SayHello();
    }

}
